package fleditor.model
{
	import flash.events.EventDispatcher;
	
	import fleditor.events.FlEditorEvent;
	import fleditor.vo.AssetCellVO;
	import fleditor.vo.MapVO;

	public class FlEditorModel extends EventDispatcher
	{
		private var _mapVO:MapVO;
		private var _assetCellList:Vector.<AssetCellVO>;
		private var _assetFodderPathList:Array;
		
		public function FlEditorModel()
		{
			_mapVO=new MapVO();
			_assetCellList=new Vector.<AssetCellVO>();
			_assetFodderPathList=[];
		}

		/**
		 *素材库文件名(SWF文件名) 
		 * @return 
		 * 
		 */		
		public function get assetFodderPathList():Array
		{
			return _assetFodderPathList;
		}

		/**
		 *素材库文件名(SWF文件名) 
		 * @param value
		 * 
		 */		
		public function set assetFodderPathList(value:Array):void
		{
			_assetFodderPathList = value;
		}

		/**
		 *单项物件列表 
		 * @return 
		 * 
		 */		
		public function get assetCellList():Vector.<AssetCellVO>
		{
			return _assetCellList;
		}

		/**
		 *单项物件列表 
		 * @param value
		 * 
		 */		
		public function set assetCellList(value:Vector.<AssetCellVO>):void
		{
			_assetCellList = value;
		}

		/**
		 * 地图值对象 
		 * @return MapVO
		 * 
		 */		
		public function get mapVO():MapVO
		{
			return _mapVO;
		}

		/**
		 *  地图值对象
		 * @param value 地图值对象
		 * 
		 */
		public function set mapVO(value:MapVO):void
		{
			_mapVO = value;
			dispatchEvent(new FlEditorEvent(FlEditorEvent.MAP_NEW_CREATE));
		}

	}
}